hasProperty

public abstract boolean hasProperty(String name)

Checks whether this JavaScript object or any of its prototypes has an enumerable property with the given name.

Return

true if object has property with the given name

Parameters

name

the name of the property

Throws

when name is empty or blank

when the JavaScript object is already disposed or invalid


public abstract boolean hasProperty(JsSymbol jsSymbol)

Checks whether this JavaScript object or any of its prototypes has a property with the given jsSymbol key.

Return

true if object has property with the given jsSymbol

Since

8.13.0

Parameters

jsSymbol

a symbol that represents the property key

Throws

when jsSymbol is from a different web page or frame

when the JavaScript object or jsSymbol is already disposed or invalid